package com.andy.buyu.server.dto;

import com.andy.buyu.server.utils.GoConstant;

import io.netty.buffer.ByteBuf;

/**
 * 炮弹属性变更
 * @author cuiwm
 */
public class BatteryAttrMessage extends BaseMessage{
	
    private int attr;
    private int val;
    
    public BatteryAttrMessage(int attr,int val) {
    	this.attr = attr;
    	this.val = val;
	}

	@Override
	public void writeBody(ByteBuf buf) {
		buf.writeByte(GoConstant.BATTERY_TYPE_14);
		buf.writeByte(attr);
		buf.writeInt(val);
	}


}